package org.example.zerenlian.chain.fliter;

import org.example.zerenlian.chain.abstr.ClothsProductAbsService;
import org.example.zerenlian.chain.dto.ClothsDTO;
import org.springframework.stereotype.Service;

import java.util.Objects;

/**
 * @author czj
 * @date 2024/12/7
 * @description
 */
@Service
public class ClothsBaseFilter implements ClothsProductAbsService {
    @Override
    public void process(ClothsDTO param) {
        if (Objects.isNull(param.getSize())) {
            System.out.println("尺码为空");
        }
        if (Objects.isNull(param.getColor())) {
            System.out.println("颜色为空");
        }
        if (Objects.isNull(param.getBrand())) {
            System.out.println("品牌为空");
        }
    }
}
